home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amoszine 9
/
Amoszine 9 (Disk 3 of 3).adf
/
Mals_Source_Code.lha
/
PROGRAM_TO_MEMORY.amos
/
PROGRAM_TO_MEMORY.amosSourceCode
< prev
Wrap
AMOS Source Code
|
1980-03-22
|
929b
|
59 lines
'**************************************
'
' AMOS BACKGROUND PROGRAM RUNNER
'
' By Malcolm Lavery 1995
'
' Based on an idea by Steve Bye
'
'**************************************
'
'
'''_STORE_PROGRAM
'
_RUN_PROGRAM
'
'
Procedure _RUN_PROGRAM
F$=Fsel$("","","Load a Sample!","")
'
Open In 1,F$
L=Lof(1)
Close 1
'
Reserve As Chip Work 11,L
'
Bload F$,Start(11)
'
Led Off
'
Bsave "RAM:TEMP",Start(10) To Start(10)+Length(10)
'
F$=Fsel$("","","Load a picture!","")
'
Amos To Back
'
'*** CHANGE TO THE SYNTEX OF THE PROGRAM ***
'
Sam Raw 1,Start(11),Length(11),22000
Exec "RAM:TEMP "+F$
'
Amos To Front
'
Kill "RAM:TEMP"
'' Erase 10
'
End Proc
'
Procedure _STORE_PROGRAM
'
F$=Fsel$("","","Load a program!","")
'
Open In 1,F$
L=Lof(1)
Close 1
'
Reserve As Data 10,L
Bload F$,Start(10)
'
End Proc